let t = setTimeout(() => {
    console.log(111);
    let t1 = setTimeout(() => {
        console.log(222);
        let t2 = setTimeout(() => {
            console.log(333);
        }, 3000);
    }, 2000);
}, 1000);


//? promise
function p(content,time) {
    return new Promise((resolve) => {
        setTimeout(() => {
            console.log(content)
            resolve()
        },time)
    })
}
p(111,1000).then(() => p(222,2000)).then(() => p(333,3000))
//? await
async function a() {
    await p(111,1000)
    await p(222,2000)
    await p(333,3000)
}
a()
